/// <reference path="../lib/lib.ts" />
var PlateBlock = (function () {
    function PlateBlock(x, y) {
        this._skin = new createjs.Bitmap("js/img/PlateBlock.jpg");
        this._skin.x = x;
        this._skin.y = y;
        this._skin.regX = 12;
        this._skin.regY = 12;
        this._skin.snapToPixel = true;
        this._skin.mouseEnabled = false;
        var shape = new b2PolygonShape();
        shape.SetAsOrientedBox(12, 12, new b2Vec2(x, y));
        var fixDef = new b2FixtureDef();
        fixDef.shape = shape;
        fixDef.friction = 1;
        fixDef.restitution = 0;
        fixDef.filter.categoryBits = Category.BLOCK;
        Game.getInstance().createStatic(fixDef, this._skin);
    }
    return PlateBlock;
})();
